package com.neiquan.neiquandemo.base;

import android.view.View;


import com.neiquan.neiquandemo.R;

import net.neiquan.applibrary.wight.ProgressWebView;


/**
 * Created by dyj on 2016/8/29.
 */
public  class BaseWebFragment extends BaseFragment{

    protected ProgressWebView mWebView;

    @Override
    public int getRootViewId() {
        return R.layout.activity_web;
    }

    @Override
    public void setViews() {
        // mLoadingView = findViewById(R.id.baseweb_loading_indicator);
        mWebView = (ProgressWebView) rootView.findViewById(R.id.baseweb_webview);
        mWebView.getSettings().setJavaScriptEnabled(true);
        initData();
        setTitleTv("链接");
        String url = getArguments().getString("url");
        if(url!=null){
            mWebView.loadUrl(url);
        }
    }

    @Override
    public void initData() {

    }

}
